package com.gjy.disruptor.excel;

import com.lmax.disruptor.EventTranslator;

/**
 * @author gjy
 * @version 1.0
 * @since 2025-08-07 11:09:20
 */
public class ExcelEventTranslator implements EventTranslator<ExcelEntity> {

    private final Long id;

    private final String name;

    public ExcelEventTranslator(Long id, String name) {
        this.id = id;
        this.name = name;
    }

    @Override
    public void translateTo(ExcelEntity event, long sequence) {
        event.setId(id);
        event.setName(name);
    }

}
